package com.dhzq.dataload.service;

import com.dhzq.dataload.dao.UserDao;
import com.dhzq.dataload.vo.SecuMain;
import com.dhzq.dataload.vo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author KevinYu
 * @version 1.0
 * @since 2021/9/23 15:32
 */

@Service
public class UserService {
    @Autowired
    private UserDao userDao;

    public List<User> getUsers(){
        return userDao.queryAllUsers();
    }

    public  SecuMain findSecumainById(long id){
        return userDao.searchSecumainById(id);
    }
}
